<?php

/*
	[SupeSite] (C) 2007-2009 Comsenz Inc.
	$Id: admin_spacenews.php 13513 2009-11-26 07:34:15Z zhaofei $
*/

if(!defined('IN_SUPESITE')) {
	exit('Access Denied');
}

if($_GET['req'] == 'del' && !empty($_GET['no'])){

    $_SGLOBAL['db']->query("DELETE FROM fang_member_collection WHERE domain_no = ".$_GET['no']);
    $res = $_SGLOBAL['db']->affected_rows();
}


if(!empty($_SGLOBAL['user']['uid'])){
    $user_id = array('user_id'=>$_SGLOBAL['user']['uid'],'pg'=>$_GET['pg']);


    $modelClass = 'app\com\simtoon\models\Collection';
    $data = YiiComm::executeByMethod($modelClass,'getVillage',$user_id);
    $pagin = $data->getPagination();

    $pagin = objectToArray($pagin);
    $AttenVillageResult = $data->getModels();

}

include template('cp_attenvillage');

?>
